home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 9122 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  864 b 

  1. Path: surfnet.nl!sun4nl!xs4all!falstaff
  2. From: falstaff@xs4all.nl (Falstaff)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: How do I write gets() function that checks for boundaries?
  5. Date: 8 Mar 1996 10:18:58 GMT
  6. Organization: XS4ALL, networking for the masses
  7. Message-ID: <4hp1ii$88u@news.xs4all.nl>
  8. References: <313FDB9F.7455@cyberus.ca>
  9. NNTP-Posting-Host: xs1.xs4all.nl
  10. X-Newsreader: NN version 6.5.0 #666 (NOV)
  11.  
  12. MC <mcardinal@cyberus.ca> writes:
  13.  
  14. >I want to write my own gets() function that will check string size so that
  15.  it doesn't accept more 
  16. >characters than my declared string variable.  Any ideas?
  17.  
  18. How about fgets(string,size,file)?
  19.  
  20. Frank
  21. --
  22. The famous GIICM now on line:  http://www.xs4all.nl/~falstaff/GIICM.html
  23. ------------------------------------------------------------------------
  24. Frank A. Vorstenbosch        +31-(70)-355 5241        falstaff@xs4all.nl
  25.